import request from '@/utils/request'
export function fetchList(data) {
  return request({
    url:'/companies/list',
    method:'post',
    data,
  })
}
export function saveOrUpdateCompany(data) {
  return request({
    url:'/companies/saveOrUpdate',
    method:'post',
    data
  })
}
// /companies/details
export function getCompaniesDetails(data) {
  return request({
    url:'/companies/details',
    method:'post',
    data
  })
}
export function delCompany(data){
  return request({
    url: '/companies/delete',
    method:'post',
    data
  })
}

export function fetchInvestmentsList(data) {
  return request({
    url:'/investments/list',
    method:'post',
    data,
  })
}

export function getInvestmentDetail(data) {
  return request({
    url:'/investments/details',
    method:'post',
    data
  })
}

export function deleteBrand(id) {
  return request({
    url:'/brand/delete/'+id,
    method:'get',
  })
}

export function getBrand(id) {
  return request({
    url:'/brand/'+id,
    method:'get',
  })
}

export function updateBrand(id,data) {
  return request({
    url:'/brand/update/'+id,
    method:'post',
    data:data
  })
}

